#%%
from video_utils import extract_frames_from_video


#%%
# video_path = r"D:\codes\working\repos-3D\fast3r\demo_examples\family\Family.mp4"
# output_dir = r"D:\codes\working\repos-3D\fast3r\demo_examples\family\images"
#%%

# saved_frames = extract_frames_from_video(video_path, output_dir)
# %%
import os
import glob
from pathlib import Path

example_path = Path(r"/home/liucong/codes/repos-3D/fast3r/demo_examples")
ext = "mp4"

found_videos = list(example_path.rglob(f"*.{ext}"))
print(found_videos)

# %%
for video in found_videos:
    extract_frames_from_video(str(video), video.parent/"images")
#%%